package com.ciaojian.store.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Future;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class SchedulDelVo {

    @ApiModelProperty("发型师Id")
    @NotNull(message = "提交发型师Id不能为空")
    private Integer workerId;

    @ApiModelProperty("起始日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Future(message = "日期有误")
    @NotNull(message = "日期不能为空")
    private Date delDate;
}
